﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataAccess;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class THONG_TIN_VI_TRIBL
    {
        #region ***** Init Methods *****

        THONG_TIN_VI_TRIDA objTHONG_TIN_VI_TRIDA;

        public THONG_TIN_VI_TRIBL()
        {
            objTHONG_TIN_VI_TRIDA = new THONG_TIN_VI_TRIDA();
        }

        #endregion ***** Init Methods *****

        #region ***** Get Methods *****

        /// <summary>
        /// Get THONG_TIN_VI_TRI by ma_ho_so
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns>THONG_TIN_VI_TRI</returns>
        public THONG_TIN_VI_TRI GetByMA_HO_SO(Int64 ma_ho_so)
        {
            return objTHONG_TIN_VI_TRIDA.GetByMA_HO_SO(ma_ho_so);
        }

        /// <summary>
        /// Get all of THONG_TIN_VI_TRI
        /// </summary>
        /// <returns>List<<THONG_TIN_VI_TRI>></returns>
        public List<THONG_TIN_VI_TRI> GetList()
        {
            return objTHONG_TIN_VI_TRIDA.GetList();
        }

        /// <summary>
        /// Get DataSet of THONG_TIN_VI_TRI
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objTHONG_TIN_VI_TRIDA.GetDataSet();
        }

        /// <summary>
        /// Get all of THONG_TIN_VI_TRI paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<THONG_TIN_VI_TRI>></returns>
        public List<THONG_TIN_VI_TRI> GetListPaged(int recperpage, int pageindex)
        {
            return objTHONG_TIN_VI_TRIDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of THONG_TIN_VI_TRI paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objTHONG_TIN_VI_TRIDA.GetDataSetPaged(recperpage, pageindex);
        }

        #endregion ***** Get Methods *****

        #region ***** Add Update Delete Methods *****

        /// <summary>
        /// Add a new THONG_TIN_VI_TRI within THONG_TIN_VI_TRI database table
        /// </summary>
        /// <param name="obj_thong_tin_vi_tri">THONG_TIN_VI_TRI</param>
        /// <returns>key of table</returns>
        public long Add(THONG_TIN_VI_TRI obj_thong_tin_vi_tri)
        {
            return objTHONG_TIN_VI_TRIDA.Add(obj_thong_tin_vi_tri);
        }

        /// <summary>
        /// updates the specified THONG_TIN_VI_TRI
        /// </summary>
        /// <param name="obj_thong_tin_vi_tri">THONG_TIN_VI_TRI</param>
        /// <returns></returns>
        public void Update(THONG_TIN_VI_TRI obj_thong_tin_vi_tri)
        {
            objTHONG_TIN_VI_TRIDA.Update(obj_thong_tin_vi_tri);
        }

        /// <summary>
        /// Delete the specified THONG_TIN_VI_TRI
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns></returns>
        public void Delete(Int64 ma_ho_so)
        {
            objTHONG_TIN_VI_TRIDA.Delete(ma_ho_so);
        }

        #endregion ***** Add Update Delete Methods *****
    }
}